#ifndef COMMAND_MONITOR_COMMAND_H_
#define COMMAND_MONITOR_COMMAND_H_

#include "command.h"

#ifdef _WIN32
#pragma warning( push )
#pragma warning( disable : 4200 )
#endif

#pragma pack(1)
namespace Cmd
{
        enum //CMD_MONITOR
        {
                SCMD_MONITOR_NULL               = 0x0000,
                SCMD_MONITOR_LOGIN              = 0x0001,
                SCMD_MONITOR_LOGIN_RES          = 0x0002,

        };

        struct stMonitorLogin:
                t_NullCmd
        {
                stMonitorLogin()
                        : t_NullCmd( CMD_MONITOR, SCMD_MONITOR_LOGIN )
                {
                        bzero( account_, sizeof( account_ ) );
                        bzero( password_, sizeof( password_ ) );
                }

                char account_[MAX_ACCOUNT_SIZE + 1];
                char password_[MAX_PASSWORD_SIZE + 1];
        };
        struct stMonitorLoginRes:
                t_NullCmd
        {
                stMonitorLoginRes()
                        : t_NullCmd( CMD_MONITOR, SCMD_MONITOR_LOGIN_RES )
                {
                        bzero( account_, sizeof( account_ ) );
                        retcode_ = 0;
                }

                char account_[MAX_ACCOUNT_SIZE + 1];
                BYTE retcode_; //0-fail 1-success
        };
};
//namespace Cmd
#pragma pack()

#ifdef _WIN32
#pragma warning( pop )
#endif

#endif //COMMAND_MONITOR_COMMAND_H_
